package com.cby.springboot.demo.service;

import com.cby.springboot.demo.bean.AdminUserRole;
import com.cby.springboot.demo.mapper.AdminUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("adminUserRoleService")
public class AdminUserRoleServiceImpl implements AdminUserRoleService{

    @Autowired
    AdminUserRoleMapper mapper;

    @Override
    public List<AdminUserRole> findAllByUid(String uid) {
        return mapper.findAllByUid(uid);
    }

    @Override
    public void deleteAllByUid(String uid) {
        mapper.deleteAllByUid(uid);
    }
}
